var mongoose = require('mongoose');
var conn = "mongodb://localhost/blog";
mongoose.Promise = global.Promise;
db = mongoose.createConnection(conn);
module.exports = db;